package pl.edu.uj.tcs.blef.utils;

public final class Full extends AbstractBet {

	private Card first;
	private Card second;
	
	public Full(Card first, Card second){
		this.first = first;
		this.second = second;
	}
	
	@Override
	public String getCode() {
		return "FULL " + first.getCode() + " " + second.getCode();
	}

	@Override
	public String getName() {
		return "FULL HOUSE" + first.getCode() + " OVER " + second.getCode();
	}

	@Override
	public int getPriority() {
		return 10*first.getPriority() + second.getPriority() + 10000;
	}

	public Card getFirst(){
		return this.first;
	}
	
	public Card getSecond(){
		return this.second;
	}
}
